package com.java.composite;

import lombok.extern.slf4j.Slf4j;

/**
 * @Author: TongRui乀
 * @Date: 2019-12-12 17:40
 * @description：
 */
@Slf4j
public class VideoFile extends AbstractFile {

    String fileName;

    public VideoFile(String name){
        this.fileName = name;
    }

    @Override
    public void addFile(AbstractFile file) {
        log.info("不支持的操作");
    }

    @Override
    public void deleteFile(AbstractFile file) {
        log.info("不支持的操作");
    }

    @Override
    public void kill() {
        log.info("视频文件{}杀毒完成", this.fileName);
    }
}
